<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../jsjar/jquery-3.5.1.min.js"></script>
<script type="text/javascript">
$(function(){
	var sex="${fuser.fsex }";
	if(sex=="男"){
		$("#nan").attr("checked","checked");
	}
	if(sex=="女"){
		$("#nv").attr("checked","checked");
	}	
});
</script>
<style type="text/css">
*{margin:0 auto; padding:0px;}
ul{list-style: none;}
ul li{margin-top:5px;}
#nv{margin-left:15px;}
#form{width:300px;height:250px;margin-top:30px;}
#sub{text-align:center;}
#ah{width:100px;height:30px;background-color:#4e6ef2;color:white;border-radius: 5px;}
</style>
<body>
<div id="form">
<form action="${pageContext.request.contextPath }/fuser/cdupdate">
<input type="hidden" name="fid" value="${fuser.fid }">
	<ul>
	<li>姓名&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="fname" value="${fuser.fname }"></li>
	<li>年龄&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="fage" value="${fuser.fage }"></li>
	<li>性别&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="radio"  name="fsex" id="nan" value="男">男<input type="radio" name="fsex" id="nv" value="女">女</li>
	<li>身份证&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="fidcard" value="${fuser.fidcard }"></li>
	<li>权限&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="power" value="${fuser.power }"></li>
	<li>账号&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="fusername" value="${fuser.fusername }"></li>
	<li>密码&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="fpassword" value="${fuser.fpassword }"></li>
	<li id="sub"><input id="ah" type="submit" value="修改"></li>
	</ul>
</form>
</div>
</body>
</html>